import ffmpeg


def video_trim(in_file, out_file, start_time, end_time):
    ffmpeg.input(in_file).filter("trim", start=start_time, end=end_time).output(out_file).overwrite_output().run()


if __name__ == "__main__":
    input_file = "../video/112.mkv"
    output_file = "../video/trim.mkv"
    start_time = "00:00:20"
    end_time = "00:01:20"
    video_trim(input_file, output_file, start_time, end_time)
